package cn.edu.abtu.controller.front;

import cn.edu.abtu.service.IndexFrontService;
import cn.edu.abtu.vo.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/eduservice/indexfront")
public class IndexFrontController {

    @Autowired
    private IndexFrontService indexFrontService;

    @GetMapping("/index")
    public ResponseData index(){
        return indexFrontService.index();
    }


}
